package com.pand.mysql.service;

import com.pand.mysql.model.Track;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Date;
import java.util.List;

/**
 * Created by lh on 2017/11/14.
 */
public interface TrackService extends JpaRepository<Track, Long> {

    List<Track> findByGpsTimeBetweenAndVin(Date startTime, Date endTime, String vin);

    List<Track> findByVin(String vin);
}
